import Layout from '@/views/layout/layout.vue'

export const routeMapPages = [
	
	//用户管理
	{
		path: '/user',
		component: Layout,
		children: [
			{ path:'/',redirect:'leoPool' },

			{
				path: 'wxWorkUser',
				name: 'wxWorkUser',
				component: () => import('../views/user/wxWorkUser.vue'),
				meta: { tabname: '企业成员' }
			},
			{
				path: 'wxWorkExternalUser',
				name: 'wxWorkExternalUser',
				component: () => import('../views/user/wxWorkExternalUser.vue'),
				meta: { tabname: '外部客户' }
			},
			
			
		]
	},
	
	//卡券
	{
		path: '/coupon',
		component: Layout,
		children: [
			{ path:'/',redirect:'couponList' },
			{
				path: 'couponCreate',
				name: 'couponCreate',
				component: () => import('../views/coupon/couponCreate.vue'),
				meta: { tabname: '卡券创建' }
			},
			{
				path: 'couponList',
				name: 'couponList',
				component: () => import('../views/coupon/couponList.vue'),
				meta: { tabname: '卡券管理' }
			},
			{
				path: 'couponUse',
				name: 'couponUse',
				component: () => import('../views/coupon/couponUse.vue'),
				meta: { tabname: '卡券核销' }
			},
			{
				path: 'couponListUser',
				name: 'couponListUser',
				component: () => import('../views/coupon/couponListUser.vue'),
				meta: { tabname: '用户领取的券' }
			},
			
			{
				path: 'callbackSet',
				name: 'callbackSet',
				component: () => import('../views/coupon/callbackSet.vue'),
				meta: { tabname: '卡券回调设置' }
			},
		
		]
	},
	
	//佣金管理
	{
		path: '/finance',
		component: Layout,
		children: [
			{ path:'/',redirect:'userMoney' },
			{
				path: 'userMoney',
				name: 'userMoney',
				component: () => import('../views/finance/userMoney.vue'),
				meta: { tabname: '佣金管理' }
			},
			{
				path: 'userMoneyLog',
				name: 'userMoneyLog',
				component: () => import('../views/finance/userMoneyLog.vue'),
				meta: { tabname: '佣金明细' }
			},
		
		
		
		]
	},

]
